package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;


@Data
@ApiModel(description = "计划实体类")
@TableName(value = "plan")
public class Plan extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "计划类型：0表示短期，1表示中期，2表示长期")
    @TableField(value = "plan_type")
    private Byte planType;

    @ApiModelProperty(value = "计划名称")
    @TableField(value = "plan_name")
    private String planName;

    @ApiModelProperty(value = "计划内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "计划开始时间")
    @TableField(value = "start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ")
    private Date startTime;

    @ApiModelProperty(value = "计划结束时间")
    @TableField(value = "end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ")
    private Date endTime;

}